package com.yzp.fegin;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @title: UserApiFeign
 * @Author: yzp
 * @Date: 2019/9/27 22:53
 * @Version 1.0
 */
@FeignClient(name = "micro-user")
public interface UserApiFeign {

    /**
     * Feign 书写方式以SpringMvc接口形式书写
     * @FeignClient 调用服务接口 name 就是微服务名称
     * 获取用户信息
     * @return
     */
    @RequestMapping("/userManagement/getInfo")
    String getInfo();
}
